package org.niu.str;

public class Judge {
    public boolean judge (String str) {
        // write code here
        int i = 0,j = str.length()-1;
        while(i < j){
            if(str.charAt(i) != str.charAt(j)) return false;
            i++;
            j--;
        }
        return true;
    }
}
